﻿using FW.Manager;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Script.Serialization;

namespace ConsoleUI
{
    class Program
    {
        static void Main(string[] args)
        {
            JavaScriptSerializer test = new JavaScriptSerializer(new test());
            var str = test.Serialize(new MyClass() { MyProperty = "fatih" });
            // var fadas = " {__type:'ConsoleUI.MyClass,ConsoleUI',\"MyProperty\":\"fatih\"}";
            var fadas = " {__type:'ConsoleUI.MyClass,ConsoleUI',\"MyProperty\":\"fatih\"}";
            var ts = test.DeserializeObject(fadas);

            Console.ReadLine();
        }
    }
    class test : SimpleTypeResolver
    {
        public override Type ResolveType(string id)
        {
            return base.ResolveType(id);
        }

        public override string ResolveTypeId(Type type)
        {
            string str = base.ResolveTypeId(type);
            return str;
        }
    }
    class MyClass
    {
        public string MyProperty { get; set; }
    }
}

